package org.vaadin.golfscoretracker.data;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import org.vaadin.appfoundation.i18n.FieldTranslation;
import org.vaadin.appfoundation.persistence.data.AbstractPojo;

@Entity
public class Hole extends AbstractPojo {

    private static final long serialVersionUID = 5401282455247756830L;

    @ManyToOne
    private Course course;

    @FieldTranslation(tuid = "hole par")
    private Integer par = 3;

    @FieldTranslation(tuid = "hole length")
    private Integer length;

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Integer getPar() {
        return par;
    }

    public void setPar(Integer par) {
        this.par = par;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

}
